package com.lifeng.finance.demo.mapper;

import com.lifeng.finance.demo.entity.Project;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ProjectMapper {
    List<Project> findAll();
    Project findOneById(@Param("id") int id);
    List<Project> findSomeByName(@Param("name") String name);
    List<Project> findSomeByCustomerId(@Param("customer_id") int customerId);
    void add(Project project);
    void update(Project project);

}
